<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'read.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
 <style type="text/css">
    .put{width:180px;}
    .input{width:270px;}
    table{position:absolute;left:80px;top:20px;}
    </style>
  </head>
  
  <body background="img/4561.jpg">
    <form name="form1" action="" method="post">
     <table border="2" bordercolor="pink">
      <tr>
       <td>
        <font>MAIL FROM:</font>
       </td>
       <td>
        <a>${mdto.fromName }@192.168.1.89</a>
       </td>
      </tr>
      <tr>
       <td>
        <font>RCPT TO:</font>
       </td>
       <td>
        <a>${mdto.toName }@192.168.1.89</a>
       </td>
      </tr>
      <tr>
       <td>
        <input type="hidden" name="toName" value="${mdto.fromName }">
       </td>
      </tr>
      <tr>
       <td>
        <font>TITLE:</font>
       </td>
       <td>
        <a>${mdto.title }</a>
       </td>
      </tr>
      <tr>
       <td>
        <font>TIME:</font>
       </td>
       <td>
        <a>${mdto.date }</a>
       </td>
      </tr>
      
      <tr>
       <td align="center" colspan="2">
        <textarea name="TextArea1" cols="36" rows="18" >
        ${Message }
        </textarea>
       </td>
      </tr>
      <tr>
       <td align="center" colspan="2">
        <c:if test="${n==1}">
          <input type="button" name="but" value="快速回复" onclick="sub();">
        </c:if>
        <a href="DoReadOverServlet">点此返回</a>
       </td>
      </tr>
     </table>
    </form>
  </body>
  <script type="text/javascript">
  function $(id){
	  return document.getElementById(id);
  }
  function sub(){
	  var form=$("form1");
	  form.action="MailWriteServlet";
	  form.submit();
  }
  
  </script>
</html>
